<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<table>
    <tr>
        <th width="10%">id</th>
        <th width="70%">类别名称</th>
        <th width="20%">管理操作</th>
    </tr>

    {{range .types}}
    <tr>
        <td>{{.Id}}</td>
        <td>{{.TypeName}}</td>
        <td><a href="javascript:;">删除</a></td>
    </tr>
    {{end}}



    <tr>
        <td colspan="3">
            <form method="post" action="/AddArticleType">
                <input type="text" placeholder="添加分类" name="typeName"><br>
                <input type="submit" value="添加分类">

            </form>

        </td>
    </tr>

</table>

</body>
</html>